define(function(require, exports, module) {
    "use strict";
    var $ = require("$"),
        app = require("dist/application/app"),
        config = app.config,
        method = app.method;

    $(document).on('change','.selfpay',function(){
        var $this=$(this);
        var $type=$this.val();
        var $selftype=$this.find("option:selected").data('type');
        if($selftype=='selfpaytype_qxz'){
            $('.selfcon_zfb').addClass('hide');
            $('.selfcon_yhk').addClass('hide');
            $('.selfcon_gjzh').addClass('hide');
        }
        else if($selftype=='selfpaytype_zfb'){
            $('.selfcon_zfb').removeClass('hide');
            $('.selfcon_yhk').addClass('hide');
            $('.selfcon_gjzh').addClass('hide');
        }
        else if($selftype=='selfpaytype_yhk'){
            $('.selfcon_yhk').removeClass('hide');
            $('.selfcon_zfb').addClass('hide');
            $('.selfcon_gjzh').addClass('hide');
        }
        else if($selftype=='selfpaytype_gjzh'){
            $('.selfcon_gjzh').removeClass('hide');
            $('.selfcon_zfb').addClass('hide');
            $('.selfcon_yhk').addClass('hide');
        }
    });


});